<?PHP
    /*
     | Submail mms/xsend API demo
     | SUBMAIL SDK Version 2.6 --PHP
     | copyright 2011 - 2017 SUBMAIL
     |--------------------------------------------------------------------------
     */
    
    /*
     |载入 app_config 文件
     |--------------------------------------------------------------------------
     */
    require '../app_config.php';
    
    /*
     |载入 SUBMAILAutoload 文件
     |--------------------------------------------------------------------------
     */
    
    require_once('../SUBMAILAutoload.php');
    
    /*
     |初始化 MMSXsend 类
     |--------------------------------------------------------------------------
     */
    
    $submail=new MMSXsend($mms_configs);
    
    /*
     |必选参数
     |--------------------------------------------------------------------------
     |设置彩信接收的11位手机号码
     |--------------------------------------------------------------------------
     */
    
    $submail->setTo('15*********');
    
    /*
     |必选参数
     |--------------------------------------------------------------------------
     |设置彩信模板ID
     |--------------------------------------------------------------------------
     */
    
    $submail->SetProject('xxxxx');
    
    /*
     |可选参数
     |--------------------------------------------------------------------------
     |添加文本变量
     |可多次调用
     |--------------------------------------------------------------------------
     */
    
    $submail->AddVar('code','198277');
    
    /*
     |调用 xsend 方法发送语音
     |--------------------------------------------------------------------------
     */
    
    $xsend=$submail->xsend();
    
    
    /*
     |打印服务器返回值
     |--------------------------------------------------------------------------
     */
    
    print_r($xsend);
   